package com.woniu.humanresource.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.humanresource.entity.Accets;
import com.woniu.humanresource.entity.Purchase;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author xiang
* @description 针对表【purchase】的数据库操作Service
* @createDate 2022-07-12 19:41:12
*/
public interface PurchaseService extends IService<Purchase> {
    //插入采购表
    int addPurchase(Purchase purchase);
    //分页查询采购表
    Page<Purchase> getPurchases(int pageIndex,int pageSize,Purchase purchase);
    //单个作废
    void removePurchaseById(int purchaseId);
    //批量作废
    void removeMultiplePurchasesById(List<Purchase> purchases);
    //根据id查询
    Purchase getPurchaseById(int purchaseid);
}
